//
//  FuncTableViewCell.m
//  MLBleSDK
//
//  Created by 程杰 on 2023/10/19.
//

#import "FuncTableViewCell.h"

@implementation FuncTableViewCell

+(instancetype)cellWithTableView:(UITableView *)tableView {
   
    static NSString *ID = @"FuncTableViewCell";
       //从缓冲池中拿到标识符是ID的cell对象
    FuncTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:ID];
       if (cell == nil) {
           //如果没有找到缓冲池中的对象，
           //则新建一个  通过loadNibNamed 方法从xib返回cell对象
    cell = [[[NSBundle mainBundle] loadNibNamed:@"FuncTableViewCell" owner:nil options:nil] lastObject];
       }
    return cell;
  
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier  {
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
    
    }
    return self;
}


- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.btnName.enabled = NO;
    self.btnName.layer.cornerRadius = 15;
    self.btnName.layer.masksToBounds = YES;
    self.btnName.backgroundColor = [UIColor systemBlueColor];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
